package com.leonzx.base.dao.system;

import com.leonzx.base.entity.system.BaseFile;
import com.leonzx.base.utils.MyMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @Author:chen
 * @Description:
 * @Date: 2018-07-10 11:37
 */
@Repository
public interface BaseFileDAO extends MyMapper<BaseFile> {

    List<String> findByIds(@Param("ids") List<String> findByIds);

    BaseFile findById(@Param("id") String id);

    void updateTypeByIds(@Param("ids") List<String> ids, @Param("type") String type);

    List<BaseFile> findByType(@Param("type") String type);

}
